Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test flakiness introduced in encryption tests #48659

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

jorgemanrubia
Copy link
Contributor

@jorgemanrubia jorgemanrubia commented Jul 5, 2023

This fixes some flakiness I introduced with 4f36572.

We'll make sure we eager load all the encrypted attribute types declared before tests start, to prevent local encryption settings changes in tests from interfering with other tests.

Kudos to @p8 for tracking this one down and seeing how to fix it. This PR is just a generalization of his solution from #48641.

I'm sorry I missed this one with that commit 🙏.

Fixes #48605
Closes #48641

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.

…3e334

We'll make sure we eager load all the encrypted attribute types declared before
tests start, to prevent local encryption settings changes in tests from interfering
with other tests.

Thanks for @p8 for tracking this one down and seeing how to fix it.

Fixes rails#48605
Closes rails#48641

Co-authored-by: Petrik <petrik@deheus.net>
@yahonda yahonda merged commit 024315e into rails:main Jul 5, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActiveRecord::Encryption tests fail
2 participants